3.4.43 \(\int \frac {(2-3 x)^3 \sqrt {x}}{(1+x)^2} \, dx\) [343]

Optimal. Leaf size=44 \[ -450 \sqrt {x}+72 x^{3/2}-\frac {54 x^{5/2}}{5}-\frac {125 \sqrt {x}}{1+x}+575 \tan ^{-1}\left (\sqrt {x}\right ) \]

[Out]

72*x^(3/2)-54/5*x^(5/2)+575*arctan(x^(1/2))-450*x^(1/2)-125*x^(1/2)/(1+x)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 58, normalized size of antiderivative = 1.32, number of steps used = 5, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {99, 158, 152, 65, 209} \begin {gather*} 575 \text {ArcTan}\left (\sqrt {x}\right )-\frac {\sqrt {x} (2-3 x)^3}{x+1}-\frac {21}{5} \sqrt {x} (2-3 x)^2-\frac {3}{5} (917-171 x) \sqrt {x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((2 - 3*x)^3*Sqrt[x])/(1 + x)^2,x]

[Out]

(-3*(917 - 171*x)*Sqrt[x])/5 - (21*(2 - 3*x)^2*Sqrt[x])/5 - ((2 - 3*x)^3*Sqrt[x])/(1 + x) + 575*ArcTan[Sqrt[x]
]

Rule 65

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 99

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Simp[(a + b*
x)^(m + 1)*(c + d*x)^n*((e + f*x)^p/(b*(m + 1))), x] - Dist[1/(b*(m + 1)), Int[(a + b*x)^(m + 1)*(c + d*x)^(n
- 1)*(e + f*x)^(p - 1)*Simp[d*e*n + c*f*p + d*f*(n + p)*x, x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && LtQ[m
, -1] && GtQ[n, 0] && GtQ[p, 0] && (IntegersQ[2*m, 2*n, 2*p] || IntegersQ[m, n + p] || IntegersQ[p, m + n])

Rule 152

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.)*((e_) + (f_.)*(x_))*((g_.) + (h_.)*(x_)), x_Symbol]
:> Simp[(-(a*d*f*h*(n + 2) + b*c*f*h*(m + 2) - b*d*(f*g + e*h)*(m + n + 3) - b*d*f*h*(m + n + 2)*x))*(a + b*x)
^(m + 1)*((c + d*x)^(n + 1)/(b^2*d^2*(m + n + 2)*(m + n + 3))), x] + Dist[(a^2*d^2*f*h*(n + 1)*(n + 2) + a*b*d
*(n + 1)*(2*c*f*h*(m + 1) - d*(f*g + e*h)*(m + n + 3)) + b^2*(c^2*f*h*(m + 1)*(m + 2) - c*d*(f*g + e*h)*(m + 1
)*(m + n + 3) + d^2*e*g*(m + n + 2)*(m + n + 3)))/(b^2*d^2*(m + n + 2)*(m + n + 3)), Int[(a + b*x)^m*(c + d*x)
^n, x], x] /; FreeQ[{a, b, c, d, e, f, g, h, m, n}, x] && NeQ[m + n + 2, 0] && NeQ[m + n + 3, 0]

Rule 158

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_)*((g_.) + (h_.)*(x_)), x_Symb
ol] :> Simp[h*(a + b*x)^m*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/(d*f*(m + n + p + 2))), x] + Dist[1/(d*f*(m + n
 + p + 2)), Int[(a + b*x)^(m - 1)*(c + d*x)^n*(e + f*x)^p*Simp[a*d*f*g*(m + n + p + 2) - h*(b*c*e*m + a*(d*e*(
n + 1) + c*f*(p + 1))) + (b*d*f*g*(m + n + p + 2) + h*(a*d*f*m - b*(d*e*(m + n + 1) + c*f*(m + p + 1))))*x, x]
, x], x] /; FreeQ[{a, b, c, d, e, f, g, h, n, p}, x] && GtQ[m, 0] && NeQ[m + n + p + 2, 0] && IntegerQ[m]

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin {align*} \int \frac {(2-3 x)^3 \sqrt {x}}{(1+x)^2} \, dx &=-\frac {(2-3 x)^3 \sqrt {x}}{1+x}+\int \frac {\left (1-\frac {21 x}{2}\right ) (2-3 x)^2}{\sqrt {x} (1+x)} \, dx\\ &=-\frac {21}{5} (2-3 x)^2 \sqrt {x}-\frac {(2-3 x)^3 \sqrt {x}}{1+x}+\frac {2}{5} \int \frac {\left (\frac {31}{2}-\frac {513 x}{4}\right ) (2-3 x)}{\sqrt {x} (1+x)} \, dx\\ &=-\frac {3}{5} (917-171 x) \sqrt {x}-\frac {21}{5} (2-3 x)^2 \sqrt {x}-\frac {(2-3 x)^3 \sqrt {x}}{1+x}+\frac {575}{2} \int \frac {1}{\sqrt {x} (1+x)} \, dx\\ &=-\frac {3}{5} (917-171 x) \sqrt {x}-\frac {21}{5} (2-3 x)^2 \sqrt {x}-\frac {(2-3 x)^3 \sqrt {x}}{1+x}+575 \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {x}\right )\\ &=-\frac {3}{5} (917-171 x) \sqrt {x}-\frac {21}{5} (2-3 x)^2 \sqrt {x}-\frac {(2-3 x)^3 \sqrt {x}}{1+x}+575 \tan ^{-1}\left (\sqrt {x}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.04, size = 38, normalized size = 0.86 \begin {gather*} -\frac {\sqrt {x} \left (2875+1890 x-306 x^2+54 x^3\right )}{5 (1+x)}+575 \tan ^{-1}\left (\sqrt {x}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((2 - 3*x)^3*Sqrt[x])/(1 + x)^2,x]

[Out]

-1/5*(Sqrt[x]*(2875 + 1890*x - 306*x^2 + 54*x^3))/(1 + x) + 575*ArcTan[Sqrt[x]]

________________________________________________________________________________________

Maple [A]
time = 0.17, size = 33, normalized size = 0.75

method result size
derivativedivides \(72 x^{\frac {3}{2}}-\frac {54 x^{\frac {5}{2}}}{5}+575 \arctan \left (\sqrt {x}\right )-450 \sqrt {x}-\frac {125 \sqrt {x}}{1+x}\) \(33\)
default \(72 x^{\frac {3}{2}}-\frac {54 x^{\frac {5}{2}}}{5}+575 \arctan \left (\sqrt {x}\right )-450 \sqrt {x}-\frac {125 \sqrt {x}}{1+x}\) \(33\)
risch \(-\frac {\left (54 x^{3}-306 x^{2}+1890 x +2875\right ) \sqrt {x}}{5 \left (1+x \right )}+575 \arctan \left (\sqrt {x}\right )\) \(33\)
trager \(-\frac {\left (54 x^{3}-306 x^{2}+1890 x +2875\right ) \sqrt {x}}{5 \left (1+x \right )}-\frac {575 \RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (-\frac {2 \RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {x}-x +1}{1+x}\right )}{2}\) \(59\)
meijerg \(-\frac {8 \sqrt {x}}{1+x}+575 \arctan \left (\sqrt {x}\right )-\frac {36 \sqrt {x}\, \left (10 x +15\right )}{5 \left (1+x \right )}-\frac {18 \sqrt {x}\, \left (-14 x^{2}+70 x +105\right )}{7 \left (1+x \right )}-\frac {3 \sqrt {x}\, \left (18 x^{3}-42 x^{2}+210 x +315\right )}{5 \left (1+x \right )}\) \(78\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2-3*x)^3*x^(1/2)/(1+x)^2,x,method=_RETURNVERBOSE)

[Out]

72*x^(3/2)-54/5*x^(5/2)+575*arctan(x^(1/2))-450*x^(1/2)-125*x^(1/2)/(1+x)

________________________________________________________________________________________

Maxima [A]
time = 0.51, size = 32, normalized size = 0.73 \begin {gather*} -\frac {54}{5} \, x^{\frac {5}{2}} + 72 \, x^{\frac {3}{2}} - 450 \, \sqrt {x} - \frac {125 \, \sqrt {x}}{x + 1} + 575 \, \arctan \left (\sqrt {x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2-3*x)^3*x^(1/2)/(1+x)^2,x, algorithm="maxima")

[Out]

-54/5*x^(5/2) + 72*x^(3/2) - 450*sqrt(x) - 125*sqrt(x)/(x + 1) + 575*arctan(sqrt(x))

________________________________________________________________________________________

Fricas [A]
time = 1.46, size = 37, normalized size = 0.84 \begin {gather*} \frac {2875 \, {\left (x + 1\right )} \arctan \left (\sqrt {x}\right ) - {\left (54 \, x^{3} - 306 \, x^{2} + 1890 \, x + 2875\right )} \sqrt {x}}{5 \, {\left (x + 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2-3*x)^3*x^(1/2)/(1+x)^2,x, algorithm="fricas")

[Out]

1/5*(2875*(x + 1)*arctan(sqrt(x)) - (54*x^3 - 306*x^2 + 1890*x + 2875)*sqrt(x))/(x + 1)

________________________________________________________________________________________

Sympy [A]
time = 0.30, size = 75, normalized size = 1.70 \begin {gather*} - \frac {54 x^{\frac {7}{2}}}{5 x + 5} + \frac {306 x^{\frac {5}{2}}}{5 x + 5} - \frac {1890 x^{\frac {3}{2}}}{5 x + 5} - \frac {2875 \sqrt {x}}{5 x + 5} + \frac {2875 x \operatorname {atan}{\left (\sqrt {x} \right )}}{5 x + 5} + \frac {2875 \operatorname {atan}{\left (\sqrt {x} \right )}}{5 x + 5} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2-3*x)**3*x**(1/2)/(1+x)**2,x)

[Out]

-54*x**(7/2)/(5*x + 5) + 306*x**(5/2)/(5*x + 5) - 1890*x**(3/2)/(5*x + 5) - 2875*sqrt(x)/(5*x + 5) + 2875*x*at
an(sqrt(x))/(5*x + 5) + 2875*atan(sqrt(x))/(5*x + 5)

________________________________________________________________________________________

Giac [A]
time = 1.41, size = 32, normalized size = 0.73 \begin {gather*} -\frac {54}{5} \, x^{\frac {5}{2}} + 72 \, x^{\frac {3}{2}} - 450 \, \sqrt {x} - \frac {125 \, \sqrt {x}}{x + 1} + 575 \, \arctan \left (\sqrt {x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2-3*x)^3*x^(1/2)/(1+x)^2,x, algorithm="giac")

[Out]

-54/5*x^(5/2) + 72*x^(3/2) - 450*sqrt(x) - 125*sqrt(x)/(x + 1) + 575*arctan(sqrt(x))

________________________________________________________________________________________

Mupad [B]
time = 0.36, size = 32, normalized size = 0.73 \begin {gather*} 575\,\mathrm {atan}\left (\sqrt {x}\right )-\frac {125\,\sqrt {x}}{x+1}-450\,\sqrt {x}+72\,x^{3/2}-\frac {54\,x^{5/2}}{5} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(x^(1/2)*(3*x - 2)^3)/(x + 1)^2,x)

[Out]

575*atan(x^(1/2)) - (125*x^(1/2))/(x + 1) - 450*x^(1/2) + 72*x^(3/2) - (54*x^(5/2))/5

________________________________________________________________________________________